package com.timothy.dao.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 角色功能权限表-IDEA
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("idea_role_menu")
public class IdeaRoleMenu extends Model<IdeaRoleMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="role_menu_id", type= IdType.AUTO)
	private Integer roleMenuId;
    /**
     * 功能ID
     */
	@TableField("menu_id")
	private Integer menuId;
    /**
     * 角色ID
     */
	@TableField("role_id")
	private Integer roleId;


	public Integer getRoleMenuId() {
		return roleMenuId;
	}

	public IdeaRoleMenu setRoleMenuId(Integer roleMenuId) {
		this.roleMenuId = roleMenuId;
		return this;
	}

	public Integer getMenuId() {
		return menuId;
	}

	public IdeaRoleMenu setMenuId(Integer menuId) {
		this.menuId = menuId;
		return this;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public IdeaRoleMenu setRoleId(Integer roleId) {
		this.roleId = roleId;
		return this;
	}

	public static final String ROLE_MENU_ID = "role_menu_id";

	public static final String MENU_ID = "menu_id";

	public static final String ROLE_ID = "role_id";

	@Override
	protected Serializable pkVal() {
		return this.roleMenuId;
	}

	@Override
	public String toString() {
		return "IdeaRoleMenu{" +
			"roleMenuId=" + roleMenuId +
			", menuId=" + menuId +
			", roleId=" + roleId +
			"}";
	}
}
